//hooks组件useState
import React,{useState} from "react";
import "./Demo3.less"
function Demo3(){
  const [age,setAge] = useState(18)
  const [sex,setSex] = useState('女')
  const [work,setWork] = useState('前端开发工程师')
  return(
    <div className="box">她是<span className="span">{work}</span>,今年<span className="span">{age}</span>岁，性别<span className="span">{sex}</span></div>
  )
}

export default Demo3;